//
//  LoadingViewController.m
//  uniquelove
//
//  Created by ibokan on 14-12-5.
//  Copyright (c) 2014年 ibokan. All rights reserved.
//

#import "LoadingViewController.h"
#import "WeiboSDK.h"
@interface LoadingViewController ()
- (IBAction)buttonClicked:(id)sender;

@end

@implementation LoadingViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}


- (IBAction)buttonClicked:(id)sender {
    WBAuthorizeRequest *request = [WBAuthorizeRequest request];
    request.redirectURI = kRedirectURL;
    request.scope = @"all";
    [WeiboSDK sendRequest:request];
}
@end
